<!DOCTYPE html >
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

<h:head></h:head>
<body>
	<h:form>
		<h:form>
			<p:dataTable id="tbl" var="subject"
				value="#{ls.listCr}"
				paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}"
				paginator="true" rows="10" style="margin-bottom:20px">
				<p:column>
					<f:facet name="header">
						<h:outputText value="ID" />
					</f:facet>
					<h:outputText value="#{subject.classRoomId}" />
				</p:column>

				<p:column>
					<f:facet name="header">
						<h:outputText value="Name" />
					</f:facet>
					<h:outputText value="#{subject.subject.subjectName}" />
				</p:column>
				
				<p:column>
					<f:facet name="header">
						<h:outputText value="Teacher" />
					</f:facet>
					<h:outputText value="#{subject.teacher.personName}" />
				</p:column>

			</p:dataTable>
		</h:form>

	</h:form>
</body>
</html>
